package com.dimples.dd.system.model.vo;

import cn.hutool.core.date.DatePattern;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2024/10/19
 */
@Schema(description = "数据源配置 VO")
@Data
public class DataSourceConfigPageVO {

    @Schema(description = "主键编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    private Integer id;

    @Schema(description = "数据源名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "test")
    private String name;

    @Schema(description="数据源编码")
    private String code;

    @Schema(description="备注")
    private String remark;

    @Schema(description="数据库类型")
    private String dbType;

    @Schema(description="驱动类")
    private String dbDriver;

    @Schema(description="数据源连接")
    private String dbUrl;

    @Schema(description="数据库名称")
    private String dbName;

    @Schema(description="用户名")
    private String dbUsername;

    @Schema(description="密码")
    private String dbPassword;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    private LocalDateTime createTime;
}
